set(build_shader_cmd "glslc shader_path -o out_name")

set(shader_builder_name "build_shader.bat")

file(GLOB shader_files "*.vert" "*.frag")

file(WRITE ${shader_builder_name} "")

foreach(item ${shader_files})
	string(REPLACE "shader_path" "${item}" raw_data ${build_shader_cmd})
	get_filename_component(base_file_name ${item} NAME)
	string(REPLACE "out_name" "${shader_bin_dir}/${base_file_name}" raw_data ${raw_data})
	file(APPEND ${shader_builder_name} "${raw_data}\n")
endforeach()